package com.example.miniappssm.mapper;

import com.example.miniappssm.bean.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GoodsMapper {

    List<Goods> selectGoodsByGoodsType(@Param("goodsType") Integer goodsType);

    Goods selectGoodsByGoodsId(@Param("goodsId") Integer goodsId);

    void updateGoods(Goods goods);

    void insertGoods(Goods goods);

    void deleteGoodsByGoodsId(@Param("goodsId") Integer goodsId);
}
